package com.song.user.feign.fallback;

import com.song.common.model.Order;
import com.song.common.result.ResultEntity;
import com.song.user.feign.OrderService;
import org.springframework.stereotype.Component;

@Component
public class FailedOrderService implements OrderService {
    @Override
    public ResultEntity<Order> getByNum(String num) {
        Order order = new Order("-1", "-1");
        return ResultEntity.fail(8080, order, "服务降级");
    }
}
